ZoomLevel

public final class ZoomLevel

A zoom level of a web page.

The class provides a set of predefined constants. Each constant name consists of the "P_" prefix followed by a number, representing the zoom level as a percentage. For example, P_25 corresponds to a 25% zoom level, and P_110 corresponds to a 110% zoom level.

Properties

Link copied to clipboard
public final static ZoomLevel P_100
Link copied to clipboard
public final static ZoomLevel P_110
Link copied to clipboard
public final static ZoomLevel P_125
Link copied to clipboard
public final static ZoomLevel P_150
Link copied to clipboard
public final static ZoomLevel P_175
Link copied to clipboard
public final static ZoomLevel P_200
Link copied to clipboard
public final static ZoomLevel P_25
Link copied to clipboard
public final static ZoomLevel P_250
Link copied to clipboard
public final static ZoomLevel P_300
Link copied to clipboard
public final static ZoomLevel P_33
Link copied to clipboard
public final static ZoomLevel P_400
Link copied to clipboard
public final static ZoomLevel P_50
Link copied to clipboard
public final static ZoomLevel P_500
Link copied to clipboard
public final static ZoomLevel P_67
Link copied to clipboard
public final static ZoomLevel P_75
Link copied to clipboard
public final static ZoomLevel P_80
Link copied to clipboard
public final static ZoomLevel P_90

Functions

Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public static ZoomLevel of(double value)
Returns a ZoomLevel instance for the given double value.
Link copied to clipboard
public String toString()
Link copied to clipboard
public double value()
Returns double representation of the current zoom level.
Link copied to clipboard
public static List<ZoomLevel> values()
Returns an immutable list of the pre-defined zoom levels.